home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / UTIL / SYS / INPUT / _files / _input / input_doc < prev    next >
Text File  |  1991-06-28  |  475b  |  24 lines

  1. *Input takes the name of a system variable and does what you might expect.
  2. An application of this might be as follows:
  3.  
  4. *Echo Which host (<Default$Host>)?
  5. *Input Use$Host
  6. *If "<Use$Host>" = "" then Set Use$Host <Default$Host>
  7. *Do Telnet <Use$Host>
  8.  
  9. MOV     R5,R1
  10. MOV     R0,R12
  11. MOV     R1,#&FF
  12. MOV     R2,#&20
  13. MOV     R3,#&FF
  14. SWI     "XOS_ReadLine"
  15. MOVVS   PC,R14
  16. MOV     R2,R1
  17. MOV     R0,R5
  18. MOV     R1,R12
  19. MOV     R3,#0
  20. MOV     R4,#0
  21. SWI     "XOS_SetVarVal"
  22. MOV     PC,R14
  23.  
  24.